{#
This is a fragment template that can be used for both an activity or an assesment
The rendered HTML will be activated by activty2-generic.js with no need to any additional js files.
If this is an assessment, this and other question types should encapsulated in a form element, to be submitted back to the server for marking.
If this is an activity, then no form reponse is required.

renders a single multuple choice question
it expects context of the following form

{
   is_activity : True if this is an activity, if false the activity related deatures wont be present in the markup 
   questionid : a unique id for the question,
   question: html containing the question,
   choices : [
      {
         answer : an answer
         feedback : a feeback message
         correct : True if correct
      }
   ]

}
#}
<div class="gcb_q_multiple_choice_container" >
    <div class="gcb_a_editable_area" gcb-a-action="/editor/{{ activity.id }}/activity/question/" >{{ activity.question }}</div>
	<ul class="gcb_q_choices">
		{% for choice in activity.choices %}
		<li>
		<span class="gcb_q_hidden gcb_q_feeedback gcb_a_editable"  gcb-a-action="/editor/{{ activity.id }}/activity/todo/" >{{ choice.feedback }}</span>
		<input class="{% if activity.is_activity and choice.correct %} gcb_q_correct {% endif %} q_multiple_choice" type="radio" name="q{{ choice.questionid }}" />
		<span class="gcb_a_editable" gcb-a-action="/editor/{{ activity.id }}/activity/todo/" >{{ choice.answer }}</span>
		</li>
		{% endfor %}
	</ul>
	{% if activity.is_activity %}
	<ul class="gcb_q_answer" >
	  <li><a class="gcb-button gcb-button-primary gcb_q_check_answer" >Check Answer</a></li>
	  <li><div class="gcb_q_feedback_box"></div></li>
	</ul>
	{% endif %}
</div>

